<script setup lang='ts'>
import Confirm from '@/components/confirm/index';
const del = ()=>{
    // 弹出确认框
    // element   this.$confirm(标题,内容).then().catch()
    Confirm({title:"我是大标题",text:'我是内容'}).then(()=>{
        console.log("点击了确认");
    }).catch(()=>{
        console.log('点击了取消');
    })
}
</script>

<template>
    <!-- <Confirm></Confirm> -->
    <button @click="del">删除</button>
</template>

<style scoped>

</style>
